﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Wix.Aura.Common.CustomTypes;
using System.Xml.Schema;
using System.Xml;

namespace Wix.Aura.Common {
	public class DirectorySearch : DirectorySearchBase {
		private DirectorySearch() { 
		}

		public DirectorySearch(string id) : base(id){
		}

		public YesNoType AssignToProperty { get; set; }
		public int? Depth { get; set; }
		public string Path { get; set; }

		public override XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public override void ReadXml(XmlReader reader) {
			throw new NotImplementedException();
		}

		public override void WriteXml(XmlWriter writer) {
			writer.WriteStartElement("DirectorySearch");
			writer.WriteAttribute("Id", Id);
			writer.WriteAttribute("AssignToProperty", AssignToProperty);
			writer.WriteAttribute("Depth", Depth);
			writer.WriteAttribute("Path", Path);
			if (Child != null)
				Child.WriteXml(writer);
			writer.WriteEndElement();
		}
	}
}
